package com.wp.land.context;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.databind.util.JSONPObject;
import com.wp.land.entity.*;
import com.wp.land.entity.citys.CityData;
import com.wp.land.entity.citys.CityLL;
import com.wp.land.entity.lists._2List;
import com.wp.land.entity.lists._3List;
import com.wp.land.entity.lists._4List;
import com.wp.land.entity.lists._6List;
import com.wp.land.entity.qrcode.*;
import com.wp.land.entity.soilenv.EnvData;
import com.wp.land.entity.soilenv.EnvLeft;
import com.wp.land.entity.soilenv.Hhw;
import com.wp.land.entity.soilenv.Ys;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.client.RestTemplate;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author: zhou
 * @Description:
 * @Date:Create in 2019/04/29
 * @Modified By:
 */

public class VDataContext {

    private static final Logger log = LoggerFactory.getLogger(VDataContext.class);

    public static Map<String,Object> threadLocalContext = new HashMap<>();

    /**
     * 耕地总数
     */
    public static List<GDData> list_1 = new ArrayList<GDData>(){{

        add(new GDData("武汉","3093000"));
        add(new GDData("十堰","2556150"));
        add(new GDData("荆州","6940350"));

        add(new GDData("宜昌","3454650"));
        add(new GDData("襄阳","6505800"));
        add(new GDData("荆门","3819750"));

        add(new GDData("孝感","3909600"));
        add(new GDData("黄冈","5004300"));
        add(new GDData("咸宁","2320050"));

        add(new GDData("随州","2062800"));
        add(new GDData("其它","9953550"));
    }};

    /**
     * 各城市得分
     */
    public static List<Scoring> list_Scoring = new ArrayList<Scoring>(){{

        add(new Scoring("武汉",76));
        add(new Scoring("襄阳",68));
        add(new Scoring("恩施",60));
        add(new Scoring("宜昌",73));
        add(new Scoring("随州",76));
        add(new Scoring("孝感",79));
        add(new Scoring("天门",94));
        add(new Scoring("黄石",56));
        add(new Scoring("荆门",56));
    }};

    /**
     * 降雨，光照
     */
    public static List<Rainfall> list_Rainfall = new ArrayList<Rainfall>(){{

        add(new Rainfall("2010","235.5","0"));
        add(new Rainfall("2011","156.3","-33.6"));
        add(new Rainfall("2012","123.5","-21"));
        add(new Rainfall("2013","423.5","42.9"));
        add(new Rainfall("2014","456.5","7.8"));
        add(new Rainfall("2015","356.5","-21.9"));
        add(new Rainfall("2016","456.5","28.1"));
        add(new Rainfall("2017","853.5","87"));
        add(new Rainfall("2018","356.5","33"));

    }};


    /**
     * 各等级耕地占比
     */
    public static List<Land> list_Land = new ArrayList<Land>(){{

        add(new Land("一等地",5));
        add(new Land("二等地",6));
        add(new Land("三等地",8));
        add(new Land("四等地",12));
        add(new Land("五等地",14));
        add(new Land("六等地",15));
        add(new Land("七等地",40));

    }};

    /**
     * 各等级农作物占比
     */
    public static List<CropArea> list_CrapArea = new ArrayList<CropArea>(){{

        //1 总面积  2占比
        add(new CropArea("稻谷  武汉","3093000","1"));
        add(new CropArea("稻谷  武汉","2039145","2"));
        add(new CropArea("十堰","508530","1"));
        add(new CropArea("十堰","2556150","2"));
        add(new CropArea("荆州","6940350","1"));
        add(new CropArea("荆州","6197025","2"));
        add(new CropArea("宜昌","3454650","1"));
        add(new CropArea("宜昌","1322685","2"));
        add(new CropArea("襄阳","6505800","1"));
        add(new CropArea("襄阳","3621975","2"));
        add(new CropArea("荆门","3819750","1"));
        add(new CropArea("荆门","3572640","2"));
        add(new CropArea("孝感","3909600","1"));
        add(new CropArea("孝感","3561465","2"));
        add(new CropArea("黄冈","5248560","1"));
        add(new CropArea("黄冈","5004300","2"));
        add(new CropArea("咸宁","2320050","1"));
        add(new CropArea("咸宁","1815615","2"));
        add(new CropArea("随州","2062800","1"));
        add(new CropArea("随州","2023530","2"));

        add(new CropArea("玉米  武汉","3093000","1"));
        add(new CropArea("玉米  武汉","386190","2"));
        add(new CropArea("十堰","2556150","1"));
        add(new CropArea("十堰","1178220","2"));
        add(new CropArea("荆州","6940350","1"));
        add(new CropArea("荆州","174240","2"));
        add(new CropArea("宜昌","3454650","1"));
        add(new CropArea("宜昌","1544775","2"));
        add(new CropArea("襄阳","6505800","1"));
        add(new CropArea("襄阳","1588725","2"));
        add(new CropArea("荆门","3819750","1"));
        add(new CropArea("荆门","413940","2"));
        add(new CropArea("孝感","3561465","1"));
        add(new CropArea("孝感","42075","2"));
        add(new CropArea("黄冈","5248560","1"));
        add(new CropArea("黄冈","65775","2"));
        add(new CropArea("咸宁","1815615","1"));
        add(new CropArea("咸宁","230970","2"));
        add(new CropArea("随州","2023530","1"));
        add(new CropArea("随州","28050","2"));

        add(new CropArea("棉花  武汉","3093000","1"));
        add(new CropArea("棉花  武汉","462450","2"));
        add(new CropArea("十堰","2556150","1"));
        add(new CropArea("十堰","1440","2"));
        add(new CropArea("荆州","6940350","1"));
        add(new CropArea("荆州","1889985","2"));
        add(new CropArea("宜昌","3454650","1"));
        add(new CropArea("宜昌","425100","2"));
        add(new CropArea("襄阳","6505800","1"));
        add(new CropArea("襄阳","652020","2"));
        add(new CropArea("荆门","3819750","1"));
        add(new CropArea("荆门","581640","2"));
        add(new CropArea("孝感","3561465","1"));
        add(new CropArea("孝感","465315","2"));
        add(new CropArea("黄冈","5248560","1"));
        add(new CropArea("黄冈","1023990","2"));
        add(new CropArea("咸宁","1815615","1"));
        add(new CropArea("咸宁","38775","2"));
        add(new CropArea("随州","2023530","1"));
        add(new CropArea("随州","213990","2"));


        add(new CropArea("花生  武汉","3093000","1"));
        add(new CropArea("花生  武汉","172080","2"));
        add(new CropArea("十堰","2556150","1"));
        add(new CropArea("十堰","90660","2"));
        add(new CropArea("荆州","6940350","1"));
        add(new CropArea("荆州","19365","2"));
        add(new CropArea("宜昌","3454650","1"));
        add(new CropArea("宜昌","130275","2"));
        add(new CropArea("襄阳","6505800","1"));
        add(new CropArea("襄阳","704625","2"));
        add(new CropArea("荆门","3819750","1"));
        add(new CropArea("荆门","353850","2"));
        add(new CropArea("孝感","3561465","1"));
        add(new CropArea("孝感","297960","2"));
        add(new CropArea("黄冈","5248560","1"));
        add(new CropArea("黄冈","580950","2"));
        add(new CropArea("咸宁","1815615","1"));
        add(new CropArea("咸宁","64260","2"));
        add(new CropArea("随州","2023530","1"));
        add(new CropArea("随州","147885","2"));


        add(new CropArea("油菜籽  武汉","3093000","1"));
        add(new CropArea("油菜籽  武汉","919110","2"));
        add(new CropArea("十堰","2556150","1"));
        add(new CropArea("十堰","460665","2"));
        add(new CropArea("荆州","6940350","1"));
        add(new CropArea("荆州","3881250","2"));
        add(new CropArea("宜昌","3454650","1"));
        add(new CropArea("宜昌","1451490","2"));
        add(new CropArea("襄阳","6505800","1"));
        add(new CropArea("襄阳","1136505","2"));
        add(new CropArea("荆门","3819750","1"));
        add(new CropArea("荆门","2016420","2"));
        add(new CropArea("孝感","3561465","1"));
        add(new CropArea("孝感","1158675","2"));
        add(new CropArea("黄冈","5248560","1"));
        add(new CropArea("黄冈","2443800","2"));
        add(new CropArea("咸宁","1815615","1"));
        add(new CropArea("咸宁","458445","2"));
        add(new CropArea("随州","2023530","1"));
        add(new CropArea("随州","181905","2"));

        add(new CropArea("甘蔗  武汉","3093000","1"));
        add(new CropArea("甘蔗  武汉","34680","2"));
        add(new CropArea("十堰","2556150","1"));
        add(new CropArea("十堰","2970","2"));
        add(new CropArea("荆州","6940350","1"));
        add(new CropArea("荆州","29265","2"));
        add(new CropArea("宜昌","3454650","1"));
        add(new CropArea("宜昌","1395","2"));
        add(new CropArea("襄阳","6505800","1"));
        add(new CropArea("襄阳","16905","2"));
        add(new CropArea("荆门","3819750","1"));
        add(new CropArea("荆门","11280","2"));
        add(new CropArea("孝感","3561465","1"));
        add(new CropArea("孝感","6585","2"));
        add(new CropArea("黄冈","5248560","1"));
        add(new CropArea("黄冈","14925","2"));
        add(new CropArea("咸宁","1815615","1"));
        add(new CropArea("咸宁","21960","2"));
        add(new CropArea("随州","2023530","1"));
        add(new CropArea("随州","2115","2"));

    }};


    /**
     * 各等级耕地占比
     */
    public static List<CityLandData> list_CityLandData = new ArrayList<>();

    public static int citys = 0;



    private static void addCityLandData(){
        CityLandData cityLandData = new CityLandData();
        CityLandData cityLandData2 = new CityLandData();
        CityLandData cityLandData3 = new CityLandData();

        cityLandData.set_1LandName("黄硅砂泥土").set_1Land_2(0.619d).set_1Land_3(8d).set_1Land_4(150d);
        cityLandData2.set_1LandName("泥砂山黄土").set_1Land_2(0.173d).set_1Land_3(9d).set_1Land_4(130d);
        cityLandData3.set_1LandName("灰红砂土").set_1Land_2(0.183d).set_1Land_3(7d).set_1Land_4(110d);

        List list2 = new ArrayList<>();
        list2.add(new _2List(100,"地形地貌：低山丘陵区"));
        list2.add(new _2List(100,"归属与分布：湖北的郧阳、宜昌、武汉、荆州"));
        list2.add(new _2List(100,"母质：石英质砂岩，页岩，片岩风化的残、坡积物"));
        list2.add(new _2List(100,"剖面构型：A—B—C型"));
        list2.add(new _2List(100,"主要性状：土体厚度100cm以上，各层次分异明显。"));
        cityLandData.set_2Land_2("该土种发育良好，土体厚度适中，适种性广。适种作物主要有小麦、玉米、豆类、薯类及杂粮。").set_2list(list2);

        List list2_2 = new ArrayList<>();
        list2_2.add(new _2List(100,"地形地貌:海拔700—800m以上砂页岩山地"));
        list2_2.add(new _2List(100,"归属与分布：主要分布在广东省韶 关、江门、肇庆、惠阳。"));
        list2_2.add(new _2List(100,"母质：砂页岩风化物 。"));
        list2_2.add(new _2List(100,"剖面构型：A—(B)—C型 "));
        list2_2.add(new _2List(100,"主要性状：质地上轻下粘，A层为砂质壤土，呈灰棕色。"));
        cityLandData2.set_2Land_2("该土种土体厚度中等，有机质及氮含量丰富，林木立地条件较好。").set_2list(list2_2);

        List list2_3 = new ArrayList<>();
        list2_3.add(new _2List(100,"地形地貌:低山、丘陵坡麓地带 "));
        list2_3.add(new _2List(100,"归属与分布：分布于湖南省娄底、常德、郴州 等地(市)各县低山、丘陵坡麓地带。"));
        list2_3.add(new _2List(100,"母质：砂质灰岩风化物。"));
        list2_3.add(new _2List(100,"剖面构型：A11—B型 "));
        list2_3.add(new _2List(100,"主要性状：土壤质地较粗，大于0.02mm砂粒含量52—58%。"));
        cityLandData3.set_2Land_2("该土种泥砂比例适中，耕性良好，养分含量中等偏高，适种性广。").set_2list(list2_3);


        List list3 = new ArrayList<>();
        list3.add(new _3List("有机质",1.68,"10"));
        list3.add(new _3List("全氮",0.091,"10"));
        list3.add(new _3List("全磷",0.036,"10"));
        list3.add(new _3List("全钾",1.33,"10"));
        cityLandData.set_3Land_3("黄硅砂泥土农化性质").set_3list(list3);

        List list3_2 = new ArrayList<>();
        list3_2.add(new _3List("有机质",6.29,"10"));
        list3_2.add(new _3List("全氮",0.247,"10"));
        list3_2.add(new _3List("全磷",0.038,"10"));
        list3_2.add(new _3List("全钾",1.52,"10"));
        cityLandData2.set_3Land_3("泥砂山黄土农化性质").set_3list(list3_2);

        List list3_3 = new ArrayList<>();
        list3_3.add(new _3List("有机质",2.22,"10"));
        list3_3.add(new _3List("全氮",0.137,"10"));
        list3_3.add(new _3List("全磷",0.056,"10"));
        list3_3.add(new _3List("全钾",1.73,"10"));
        cityLandData3.set_3Land_3("灰红砂土农化性质").set_3list(list3_3);


        List list4 = new ArrayList<>();
        list4.add(new _4List("2019/01/01 00:00:00",375,"1"));
        list4.add(new _4List("2019/01/01 00:00:00",180,"2"));
        list4.add(new _4List("2019/02/01 00:00:00",200,"1"));
        list4.add(new _4List("2019/02/01 00:00:00",100,"2"));
        list4.add(new _4List("2019/03/01 00:00:00",25,"1"));
        list4.add(new _4List("2019/03/01 00:00:00",125,"2"));
        list4.add(new _4List("2019/04/01 00:00:00",190,"1"));
        list4.add(new _4List("2019/04/01 00:00:00",110,"2"));
        list4.add(new _4List("2019/05/01 00:00:00",90,"1"));
        list4.add(new _4List("2019/05/01 00:00:00",60,"2"));
        cityLandData.set_4Land_1("107").set_4Land_2("150").set_4list(list4);

        List list4_2 = new ArrayList<>();
        list4_2.add(new _4List("2019/01/01 00:00:00",275,"1"));
        list4_2.add(new _4List("2019/01/01 00:00:00",280,"2"));
        list4_2.add(new _4List("2019/02/01 00:00:00",190,"1"));
        list4_2.add(new _4List("2019/02/01 00:00:00",120,"2"));
        list4_2.add(new _4List("2019/03/01 00:00:00",45,"1"));
        list4_2.add(new _4List("2019/03/01 00:00:00",155,"2"));
        list4_2.add(new _4List("2019/04/01 00:00:00",180,"1"));
        list4_2.add(new _4List("2019/04/01 00:00:00",133,"2"));
        list4_2.add(new _4List("2019/05/01 00:00:00",80,"1"));
        list4_2.add(new _4List("2019/05/01 00:00:00",64,"2"));
        cityLandData2.set_4Land_1("101").set_4Land_2("125").set_4list(list4_2);

        List list4_3 = new ArrayList<>();
        list4_3.add(new _4List("2019/01/01 00:00:00",335,"1"));
        list4_3.add(new _4List("2019/01/01 00:00:00",190,"2"));
        list4_3.add(new _4List("2019/02/01 00:00:00",210,"1"));
        list4_3.add(new _4List("2019/02/01 00:00:00",110,"2"));
        list4_3.add(new _4List("2019/03/01 00:00:00",22,"1"));
        list4_3.add(new _4List("2019/03/01 00:00:00",121,"2"));
        list4_3.add(new _4List("2019/04/01 00:00:00",187,"1"));
        list4_3.add(new _4List("2019/04/01 00:00:00",109,"2"));
        list4_3.add(new _4List("2019/05/01 00:00:00",87,"1"));
        list4_3.add(new _4List("2019/05/01 00:00:00",59,"2"));
        cityLandData3.set_4Land_1("99").set_4Land_2("103").set_4list(list4_3);


        cityLandData.set_5Land_1(21.8).set_5Land_2(32).set_5Land_3(1.3).set_5Land_4(6.3).set_5Land_5(0.45).set_5Land_6(7);
        cityLandData2.set_5Land_1(20).set_5Land_2(19).set_5Land_3(1.2).set_5Land_4(4.4).set_5Land_5(0.3).set_5Land_6(6);
        cityLandData3.set_5Land_1(52).set_5Land_2(23).set_5Land_3(1.6).set_5Land_4(5.7).set_5Land_5(0.5).set_5Land_6(9);

        List list6 = new ArrayList<>();
        list6.add(new _6List("晴",32));
        list6.add(new _6List("多云",54));
        list6.add(new _6List("阴",45));
        list6.add(new _6List("阵雨",12));
        list6.add(new _6List("雷阵雨",40));
        list6.add(new _6List("沙尘暴",12));
        list6.add(new _6List("霾",60));
        cityLandData.set_6Land_1("2017年").set_6land_3(139).set_6land_4(70).set_6list(list6);

        List list6_2 = new ArrayList<>();
        list6_2.add(new _6List("晴",22));
        list6_2.add(new _6List("多云",66));
        list6_2.add(new _6List("阴",50));
        list6_2.add(new _6List("阵雨",20));
        list6_2.add(new _6List("雷阵雨",44));
        list6_2.add(new _6List("沙尘暴",18));
        list6_2.add(new _6List("霾",65));
        cityLandData2.set_6Land_1("2018年").set_6land_3(120).set_6land_4(68).set_6list(list6_2);

        List list6_3 = new ArrayList<>();
        list6_3.add(new _6List("晴",44));
        list6_3.add(new _6List("多云",20));
        list6_3.add(new _6List("阴",10));
        list6_3.add(new _6List("阵雨",9));
        list6_3.add(new _6List("雷阵雨",5));
        list6_3.add(new _6List("沙尘暴",18));
        list6_3.add(new _6List("霾",20));
        cityLandData3.set_6Land_1("2019年").set_6land_3(115).set_6land_4(71).set_6list(list6_3);

        list_CityLandData.add(cityLandData);
        list_CityLandData.add(cityLandData2);
        list_CityLandData.add(cityLandData3);

    }


    public static Object getValue(String key,List initList){
        if (threadLocalContext.get(key) == null){
            log.info("当前线程：[{}]",Thread.currentThread().getName());
            //将list 增进去
//            Map map = new HashMap(){{
//               put(key,initList);
//            }};

            threadLocalContext.put(key,initList);
        }
        return threadLocalContext.get(key);
    }

    public static Object setValue(String key,Object value){
//        Object cacheMap = threadLocalContext.get(key);

        return threadLocalContext.put(key, value);
    }


    /**
     * #####################################
     * 二维码扫描 start
     */

     // 是否开启扫描
     public static boolean isStart = false;

     public static int qrIndex = 1;   //qr

     public static List<String> list_qr_index  = new ArrayList<String>();

     public static List<QRData> list_QRData = new ArrayList<>();


     public static void initQrData(){
         QRData qrData = QRData.builder().cropsName("土豆")
                 .url("http://47.92.245.113:8180/img_1.html").img("https://s2.ax1x.com/2019/05/13/E5MtCn.png").build();
         initQrData_1(qrData);
         list_QRData.add(qrData);
         list_qr_index.add("0");

         QRData qrData_2 = QRData.builder().cropsName("花生")
                 .url("http://47.92.245.113:8180/img_2.html").img("https://s2.ax1x.com/2019/05/13/E5M0DU.png").build();
         initQrData_2(qrData_2);
         list_QRData.add(qrData_2);
         list_qr_index.add("1");

     }

     private static  void initQrData_1(QRData qrData){
         qrData.setWdName(90);
         List<XYS> wdXys = new ArrayList<>();
         wdXys.add(new XYS("2010/01/01 00:00:00",50,"1"));
         wdXys.add(new XYS("2010/02/01 00:00:00",140,"1"));
         wdXys.add(new XYS("2010/03/01 00:00:00",100,"1"));
         wdXys.add(new XYS("2010/04/01 00:00:00",120,"1"));
         wdXys.add(new XYS("2010/05/01 00:00:00",40,"1"));
         wdXys.add(new XYS("2010/06/01 00:00:00",210,"1"));
         wdXys.add(new XYS("2010/07/01 00:00:00",110,"1"));
         wdXys.add(new XYS("2010/08/01 00:00:00",140,"1"));
         wdXys.add(new XYS("2010/09/01 00:00:00",100,"1"));
         wdXys.add(new XYS("2010/10/01 00:00:00",90,"1"));
         wdXys.add(new XYS("2010/01/01 00:00:00",30,"2"));
         wdXys.add(new XYS("2010/02/01 00:00:00",120,"2"));
         wdXys.add(new XYS("2010/03/01 00:00:00",50,"2"));
         wdXys.add(new XYS("2010/04/01 00:00:00",120,"2"));
         wdXys.add(new XYS("2010/05/01 00:00:00",40,"2"));
         wdXys.add(new XYS("2010/06/01 00:00:00",150,"2"));
         wdXys.add(new XYS("2010/07/01 00:00:00",70,"2"));
         wdXys.add(new XYS("2010/08/01 00:00:00",120,"2"));
         wdXys.add(new XYS("2010/09/01 00:00:00",60,"2"));
         wdXys.add(new XYS("2010/10/01 00:00:00",50,"2"));
         qrData.setWdList(wdXys);

         qrData.setSdName(88);
         List<XYS> sdXys = new ArrayList<>();
         sdXys.add(new XYS("2010/01/01 00:00:00",90,"1"));
         sdXys.add(new XYS("2010/02/01 00:00:00",30,"1"));
         sdXys.add(new XYS("2010/03/01 00:00:00",80,"1"));
         sdXys.add(new XYS("2010/04/01 00:00:00",20,"1"));
         sdXys.add(new XYS("2010/05/01 00:00:00",50,"1"));
         sdXys.add(new XYS("2010/06/01 00:00:00",190,"1"));
         sdXys.add(new XYS("2010/07/01 00:00:00",170,"1"));
         sdXys.add(new XYS("2010/08/01 00:00:00",150,"1"));
         sdXys.add(new XYS("2010/09/01 00:00:00",40,"1"));
         sdXys.add(new XYS("2010/10/01 00:00:00",60,"1"));

         sdXys.add(new XYS("2010/01/01 00:00:00",100,"2"));
         sdXys.add(new XYS("2010/02/01 00:00:00",60,"2"));
         sdXys.add(new XYS("2010/03/01 00:00:00",70,"2"));
         sdXys.add(new XYS("2010/04/01 00:00:00",50,"2"));
         sdXys.add(new XYS("2010/05/01 00:00:00",160,"2"));
         sdXys.add(new XYS("2010/06/01 00:00:00",180,"2"));
         sdXys.add(new XYS("2010/07/01 00:00:00",130,"2"));
         sdXys.add(new XYS("2010/08/01 00:00:00",120,"2"));
         sdXys.add(new XYS("2010/09/01 00:00:00",30,"2"));
         sdXys.add(new XYS("2010/10/01 00:00:00",50,"2"));
         qrData.setSdList(sdXys);


         qrData.setGzLeft(95);
//         qrData.setGzright(56);
         List<XYS> gzList = new ArrayList<>();
         gzList.add(new XYS("2010/01/01 00:00:00",16,"1"));
         gzList.add(new XYS("2010/02/01 00:00:00",18,"1"));
         gzList.add(new XYS("2010/03/01 00:00:00",80,"1"));
         gzList.add(new XYS("2010/04/01 00:00:00",40,"1"));
         gzList.add(new XYS("2010/05/01 00:00:00",20,"1"));
         gzList.add(new XYS("2010/06/01 00:00:00",200,"1"));
         gzList.add(new XYS("2010/07/01 00:00:00",90,"1"));
         gzList.add(new XYS("2010/08/01 00:00:00",20,"1"));
         gzList.add(new XYS("2010/09/01 00:00:00",90,"1"));
         gzList.add(new XYS("2010/10/01 00:00:00",60,"1"));

         gzList.add(new XYS("2010/01/01 00:00:00",16,"2"));
         gzList.add(new XYS("2010/02/01 00:00:00",18,"2"));
         gzList.add(new XYS("2010/03/01 00:00:00",70,"2"));
         gzList.add(new XYS("2010/04/01 00:00:00",60,"2"));
         gzList.add(new XYS("2010/05/01 00:00:00",20,"2"));
         gzList.add(new XYS("2010/06/01 00:00:00",180,"2"));
         gzList.add(new XYS("2010/07/01 00:00:00",90,"2"));
         gzList.add(new XYS("2010/08/01 00:00:00",30,"2"));
         gzList.add(new XYS("2010/09/01 00:00:00",75,"2"));
         gzList.add(new XYS("2010/10/01 00:00:00",80,"2"));

         qrData.setGzList(gzList);


         qrData.setJyLeft(94);
//         qrData.setJdright(82);
         List<XYS> jdList = new ArrayList<>();
         jdList.add(new XYS("2010/01/01 00:00:00",30,"1"));
         jdList.add(new XYS("2010/02/01 00:00:00",160,"1"));
         jdList.add(new XYS("2010/03/01 00:00:00",80,"1"));
         jdList.add(new XYS("2010/04/01 00:00:00",90,"1"));
         jdList.add(new XYS("2010/05/01 00:00:00",20,"1"));
         jdList.add(new XYS("2010/06/01 00:00:00",190,"1"));
         jdList.add(new XYS("2010/07/01 00:00:00",100,"1"));
         jdList.add(new XYS("2010/08/01 00:00:00",150,"1"));
         jdList.add(new XYS("2010/09/01 00:00:00",90,"1"));
         jdList.add(new XYS("2010/10/01 00:00:00",60,"1"));

         jdList.add(new XYS("2010/01/01 00:00:00",40,"2"));
         jdList.add(new XYS("2010/02/01 00:00:00",150,"2"));
         jdList.add(new XYS("2010/03/01 00:00:00",60,"2"));
         jdList.add(new XYS("2010/04/01 00:00:00",110,"2"));
         jdList.add(new XYS("2010/05/01 00:00:00",30,"2"));
         jdList.add(new XYS("2010/06/01 00:00:00",140,"2"));
         jdList.add(new XYS("2010/07/01 00:00:00",80,"2"));
         jdList.add(new XYS("2010/08/01 00:00:00",170,"2"));
         jdList.add(new XYS("2010/09/01 00:00:00",120,"2"));
         jdList.add(new XYS("2010/10/01 00:00:00",60,"2"));
         qrData.setJyList(jdList);



         //changedata


         List<QRChangeData> qrChangeDatas = new ArrayList<>();
         qrChangeDatas.add(new QRChangeData("","名称：花生"));
         qrChangeDatas.add(new QRChangeData("","品种：珍珠型，远杂9102"));
         qrChangeDatas.add(new QRChangeData("","适合种植地区：北纬40度以南，年平均气候在11℃以上，生育期积温超过2800℃，年降雨量高于500mm的地区"));
         qrChangeDatas.add(new QRChangeData("","适宜土壤：雨量适中的沙质土地区"));
         qrChangeDatas.add(new QRChangeData("","播种期：春季5cm土层地温稳定在12℃时"));
         qrChangeDatas.add(new QRChangeData("","建议施肥：施腐熟圈粪、炕洞土、沤制绿肥等"));
         qrData.setQrChangeDataList(qrChangeDatas);

         //
         List<TypeValue> typeValues = new ArrayList<>();
         typeValues.add(new TypeValue("气候",87));
         typeValues.add(new TypeValue("降水",99));
         typeValues.add(new TypeValue("光照",86));
         typeValues.add(new TypeValue("肥力",71));
         typeValues.add(new TypeValue("土壤环境",94));
         qrData.setTaskLeft(typeValues);

         List<AimsActual> aimsActuals = new ArrayList<>();
         aimsActuals.add(new AimsActual("100","98.5"));
         qrData.setTaskRight(aimsActuals);


         List<XYZ> tableAvgList = new ArrayList<>();
         tableAvgList.add(new XYZ("气候","127","400"));
         tableAvgList.add(new XYZ("降水","227","400"));
         tableAvgList.add(new XYZ("光照","97","400"));
         tableAvgList.add(new XYZ("肥力","85","400"));
         tableAvgList.add(new XYZ("土壤环境","187","400"));
         qrData.setTableAvgList(tableAvgList);


         String series2 = "https://img.alicdn.com/tfs/TB1.Vx2sMHqK1RjSZFEXXcGMXXa-200-200.png";
         List<YSMatch> ysMatchList = new ArrayList<>();
         ysMatchList.add(new YSMatch("SiO2",99,"73.28",series2,"74"));
         ysMatchList.add(new YSMatch("MnO",98,"4.8",series2,"4.7"));
         ysMatchList.add(new YSMatch("TiO2",94,"0.05",series2,"1"));
         ysMatchList.add(new YSMatch("Al2O3",90,"1.13",series2,"1.2"));
         ysMatchList.add(new YSMatch("CaO",94,"11.48",series2,"13"));
         ysMatchList.add(new YSMatch("MgO",93,"0.2",series2,"0.23"));
         ysMatchList.add(new YSMatch("K2O",91,"0.57",series2,"0.63"));
         ysMatchList.add(new YSMatch("Na2O",99,"1.57",series2,"17"));
         ysMatchList.add(new YSMatch("P2O5",98,"0.14",series2,"0.14"));
         ysMatchList.add(new YSMatch("LOI",93,"0.11",series2,"0.11"));
         ysMatchList.add(new YSMatch("S",99,"5.73",series2,"5.81"));
         ysMatchList.add(new YSMatch("B",96,"0.25",series2,"0.25"));
         ysMatchList.add(new YSMatch("Cu",91,"74.8",series2,"77.2"));
         ysMatchList.add(new YSMatch("Mn",98,"22.68",series2,"22"));
         ysMatchList.add(new YSMatch("Zn",97,"64.28",series2,"2222"));
         qrData.setYsMatchList(ysMatchList);


         List<YSMatch> landCompositionList = new ArrayList<>();
         landCompositionList.add(new YSMatch("有机质",99,"1.63",series2,"1.7"));
         landCompositionList.add(new YSMatch("全氮",98,"0.88",series2,"0.09"));
         landCompositionList.add(new YSMatch("全磷",94,"0.35",series2,"1"));
         landCompositionList.add(new YSMatch("全钾",90,"1.13",series2,"1.45"));
         landCompositionList.add(new YSMatch("速效磷",94,"5.48",series2,"6"));
         landCompositionList.add(new YSMatch("速效钾",93,"11.2",series2,"160"));
         landCompositionList.add(new YSMatch("有效微量元素锌",91,"0.57",series2,"0.63"));
         landCompositionList.add(new YSMatch("硼",99,"1.57",series2,"17"));
         landCompositionList.add(new YSMatch("锰",98,"5.14",series2,"60"));
         landCompositionList.add(new YSMatch("铁",98,"8.14",series2,"8"));
         qrData.setLandCompositionList(landCompositionList);

     }

    private static  void initQrData_2(QRData qrData){
        qrData.setWdName(63);
        List<XYS> wdXys = new ArrayList<>();
        wdXys.add(new XYS("2010/01/01 00:00:00",50,"1"));
        wdXys.add(new XYS("2010/02/01 00:00:00",140,"1"));
        wdXys.add(new XYS("2010/03/01 00:00:00",100,"1"));
        wdXys.add(new XYS("2010/04/01 00:00:00",120,"1"));
        wdXys.add(new XYS("2010/05/01 00:00:00",40,"1"));
        wdXys.add(new XYS("2010/06/01 00:00:00",210,"1"));
        wdXys.add(new XYS("2010/07/01 00:00:00",110,"1"));
        wdXys.add(new XYS("2010/08/01 00:00:00",140,"1"));
        wdXys.add(new XYS("2010/09/01 00:00:00",100,"1"));
        wdXys.add(new XYS("2010/10/01 00:00:00",90,"1"));
        wdXys.add(new XYS("2010/01/01 00:00:00",30,"2"));
        wdXys.add(new XYS("2010/02/01 00:00:00",120,"2"));
        wdXys.add(new XYS("2010/03/01 00:00:00",50,"2"));
        wdXys.add(new XYS("2010/04/01 00:00:00",120,"2"));
        wdXys.add(new XYS("2010/05/01 00:00:00",40,"2"));
        wdXys.add(new XYS("2010/06/01 00:00:00",150,"2"));
        wdXys.add(new XYS("2010/07/01 00:00:00",70,"2"));
        wdXys.add(new XYS("2010/08/01 00:00:00",120,"2"));
        wdXys.add(new XYS("2010/09/01 00:00:00",60,"2"));
        wdXys.add(new XYS("2010/10/01 00:00:00",50,"2"));
        qrData.setWdList(wdXys);

        qrData.setSdName(76);
        List<XYS> sdXys = new ArrayList<>();
        sdXys.add(new XYS("2010/01/01 00:00:00",110,"1"));
        sdXys.add(new XYS("2010/02/01 00:00:00",50,"1"));
        sdXys.add(new XYS("2010/03/01 00:00:00",60,"1"));
        sdXys.add(new XYS("2010/04/01 00:00:00",40,"1"));
        sdXys.add(new XYS("2010/05/01 00:00:00",70,"1"));
        sdXys.add(new XYS("2010/06/01 00:00:00",160,"1"));
        sdXys.add(new XYS("2010/07/01 00:00:00",140,"1"));
        sdXys.add(new XYS("2010/08/01 00:00:00",130,"1"));
        sdXys.add(new XYS("2010/09/01 00:00:00",70,"1"));
        sdXys.add(new XYS("2010/10/01 00:00:00",60,"1"));

        sdXys.add(new XYS("2010/01/01 00:00:00",100,"2"));
        sdXys.add(new XYS("2010/02/01 00:00:00",60,"2"));
        sdXys.add(new XYS("2010/03/01 00:00:00",70,"2"));
        sdXys.add(new XYS("2010/04/01 00:00:00",50,"2"));
        sdXys.add(new XYS("2010/05/01 00:00:00",160,"2"));
        sdXys.add(new XYS("2010/06/01 00:00:00",180,"2"));
        sdXys.add(new XYS("2010/07/01 00:00:00",130,"2"));
        sdXys.add(new XYS("2010/08/01 00:00:00",120,"2"));
        sdXys.add(new XYS("2010/09/01 00:00:00",30,"2"));
        sdXys.add(new XYS("2010/10/01 00:00:00",50,"2"));
        qrData.setSdList(sdXys);


        qrData.setGzLeft(87);
//        qrData.setGzright(56);
        List<XYS> gzList = new ArrayList<>();
        gzList.add(new XYS("2010/01/01 00:00:00",30,"1"));
        gzList.add(new XYS("2010/02/01 00:00:00",50,"1"));
        gzList.add(new XYS("2010/03/01 00:00:00",70,"1"));
        gzList.add(new XYS("2010/04/01 00:00:00",40,"1"));
        gzList.add(new XYS("2010/05/01 00:00:00",50,"1"));
        gzList.add(new XYS("2010/06/01 00:00:00",170,"1"));
        gzList.add(new XYS("2010/07/01 00:00:00",110,"1"));
        gzList.add(new XYS("2010/08/01 00:00:00",40,"1"));
        gzList.add(new XYS("2010/09/01 00:00:00",110,"1"));
        gzList.add(new XYS("2010/10/01 00:00:00",100,"1"));

        gzList.add(new XYS("2010/01/01 00:00:00",16,"2"));
        gzList.add(new XYS("2010/02/01 00:00:00",18,"2"));
        gzList.add(new XYS("2010/03/01 00:00:00",70,"2"));
        gzList.add(new XYS("2010/04/01 00:00:00",60,"2"));
        gzList.add(new XYS("2010/05/01 00:00:00",20,"2"));
        gzList.add(new XYS("2010/06/01 00:00:00",180,"2"));
        gzList.add(new XYS("2010/07/01 00:00:00",90,"2"));
        gzList.add(new XYS("2010/08/01 00:00:00",30,"2"));
        gzList.add(new XYS("2010/09/01 00:00:00",75,"2"));
        gzList.add(new XYS("2010/10/01 00:00:00",80,"2"));
        qrData.setGzList(gzList);


        qrData.setJyLeft(99);
//        qrData.setJdright(82);
        List<XYS> jdList = new ArrayList<>();
        jdList.add(new XYS("2010/01/01 00:00:00",60,"1"));
        jdList.add(new XYS("2010/02/01 00:00:00",130,"1"));
        jdList.add(new XYS("2010/03/01 00:00:00",120,"1"));
        jdList.add(new XYS("2010/04/01 00:00:00",80,"1"));
        jdList.add(new XYS("2010/05/01 00:00:00",40,"1"));
        jdList.add(new XYS("2010/06/01 00:00:00",160,"1"));
        jdList.add(new XYS("2010/07/01 00:00:00",70,"1"));
        jdList.add(new XYS("2010/08/01 00:00:00",130,"1"));
        jdList.add(new XYS("2010/09/01 00:00:00",120,"1"));
        jdList.add(new XYS("2010/10/01 00:00:00",70,"1"));

        jdList.add(new XYS("2010/01/01 00:00:00",40,"2"));
        jdList.add(new XYS("2010/02/01 00:00:00",150,"2"));
        jdList.add(new XYS("2010/03/01 00:00:00",60,"2"));
        jdList.add(new XYS("2010/04/01 00:00:00",110,"2"));
        jdList.add(new XYS("2010/05/01 00:00:00",30,"2"));
        jdList.add(new XYS("2010/06/01 00:00:00",140,"2"));
        jdList.add(new XYS("2010/07/01 00:00:00",80,"2"));
        jdList.add(new XYS("2010/08/01 00:00:00",170,"2"));
        jdList.add(new XYS("2010/09/01 00:00:00",120,"2"));
        jdList.add(new XYS("2010/10/01 00:00:00",60,"2"));
        qrData.setJyList(jdList);



        List<QRChangeData> qrChangeDatas = new ArrayList<>();
        qrChangeDatas.add(new QRChangeData("","名称：富硒绿茶"));
        qrChangeDatas.add(new QRChangeData("","品种：恩施玉露"));
        qrChangeDatas.add(new QRChangeData("","适合种植地区：湖北恩施，北纬30度"));
        qrChangeDatas.add(new QRChangeData("","适宜土壤：湖北恩施被称为神秘的北纬30度，亿万年发育良好的"));
        qrChangeDatas.add(new QRChangeData("","喀斯特地貌，两万四千平方公里的土地，百分之七十的森林覆盖"));
        qrChangeDatas.add(new QRChangeData("","建议施肥：施用含硒的生物有机肥"));
        qrData.setQrChangeDataList(qrChangeDatas);

        //
        List<TypeValue> typeValues = new ArrayList<>();
        typeValues.add(new TypeValue("气候",93));
        typeValues.add(new TypeValue("降水",82));
        typeValues.add(new TypeValue("光照",99));
        typeValues.add(new TypeValue("肥力",98));
        typeValues.add(new TypeValue("土壤环境",84));
        qrData.setTaskLeft(typeValues);

        List<AimsActual> aimsActuals = new ArrayList<>();
        aimsActuals.add(new AimsActual("100","94.5"));
        qrData.setTaskRight(aimsActuals);


        List<XYZ> tableAvgList = new ArrayList<>();
        tableAvgList.add(new XYZ("气候","78","300"));
        tableAvgList.add(new XYZ("降水","120","300"));
        tableAvgList.add(new XYZ("光照","333","300"));
        tableAvgList.add(new XYZ("肥力","221","300"));
        tableAvgList.add(new XYZ("土壤环境","329","300"));
        qrData.setTableAvgList(tableAvgList);



        List<YSMatch> ysMatchList = new ArrayList<>();
        String series2 = "https://img.alicdn.com/tfs/TB1.Vx2sMHqK1RjSZFEXXcGMXXa-200-200.png";
        ysMatchList.add(new YSMatch("SiO2",99,"73.28",series2,"74"));
        ysMatchList.add(new YSMatch("MnO",98,"4.8",series2,"4.7"));
        ysMatchList.add(new YSMatch("TiO2",94,"0.05",series2,"1"));
        ysMatchList.add(new YSMatch("Al2O3",90,"1.13",series2,"1.2"));
        ysMatchList.add(new YSMatch("CaO",94,"11.48",series2,"13"));
        ysMatchList.add(new YSMatch("MgO",93,"0.2",series2,"0.23"));
        ysMatchList.add(new YSMatch("K2O",91,"0.57",series2,"0.63"));
        ysMatchList.add(new YSMatch("Na2O",99,"1.57",series2,"17"));
        ysMatchList.add(new YSMatch("P2O5",98,"0.14",series2,"0.14"));
        ysMatchList.add(new YSMatch("LOI",93,"0.11",series2,"0.11"));
        ysMatchList.add(new YSMatch("S",99,"5.73",series2,"5.81"));
        ysMatchList.add(new YSMatch("B",96,"0.25",series2,"0.25"));
        ysMatchList.add(new YSMatch("Cu",91,"74.8",series2,"77.2"));
        ysMatchList.add(new YSMatch("Mn",98,"22.68",series2,"22"));
        ysMatchList.add(new YSMatch("Zn",97,"64.28",series2,"2222"));
        qrData.setYsMatchList(ysMatchList);


        List<YSMatch> landCompositionList = new ArrayList<>();
        landCompositionList.add(new YSMatch("有机质",99,"1.63",series2,"1.7"));
        landCompositionList.add(new YSMatch("全氮",98,"0.88",series2,"0.09"));
        landCompositionList.add(new YSMatch("全磷",94,"0.35",series2,"1"));
        landCompositionList.add(new YSMatch("全钾",90,"1.13",series2,"1.45"));
        landCompositionList.add(new YSMatch("速效磷",94,"5.48",series2,"6"));
        landCompositionList.add(new YSMatch("速效钾",93,"11.2",series2,"160"));
        landCompositionList.add(new YSMatch("有效微量元素锌",91,"0.57",series2,"0.63"));
        landCompositionList.add(new YSMatch("硼",99,"1.57",series2,"17"));
        landCompositionList.add(new YSMatch("锰",98,"5.14",series2,"60"));
        landCompositionList.add(new YSMatch("铁",98,"8.14",series2,"8"));
        qrData.setLandCompositionList(landCompositionList);
    }

    /**
     * #####################################
     * 二维码扫描 end
     */

    /**
     * #####################################
     * 土壤环境 start
     */

    public static int envIndex = 0;
    public static List<EnvData> list_envData  = new ArrayList<>();

    public static void initEnv(){
        EnvData envData1 = new EnvData();
        EnvData envData2 = new EnvData();
        EnvData envData3 = new EnvData();
        //===第1组===
        //第1
        List<Hhw> hhwList1 = getHhwList1(1); //化合物
        List<Ys> ysList1 = getYsList1(1); //元素
        //第2
        List<Hhw> hhwList2 = getHhwList2(1); //化合物
        List<Ys> ysList2 = getYsList2(1); //元素
        //第3
        List<Hhw> hhwList3 = getHhwList3(1); //化合物
        List<Ys> ysList3 = getYsList3(1); //元素
        //第4
        List<Hhw> hhwList4 = getHhwList4(1); //化合物
        List<Ys> ysList4 = getYsList4(1); //元素
        //第5
        List<Hhw> hhwList5 = getHhwList5(1); //化合物
        List<Ys> ysList5 = getYsList5(1); //元素

        envData1.setListHhw_1(hhwList1);
        envData1.setListHhw_2(hhwList2);
        envData1.setListHhw_3(hhwList3);
        envData1.setListHhw_4(hhwList4);
        envData1.setListHhw_5(hhwList5);
        envData1.setListYs_1(ysList1);
        envData1.setListYs_2(ysList2);
        envData1.setListYs_3(ysList3);
        envData1.setListYs_4(ysList4);
        envData1.setListYs_5(ysList5);

        initDataEnvLeft_1(envData1);

        envData1.setName("湖北省武汉市江夏区龙泉村");

        //===第2组===
        //第1
        List<Hhw> hhwList1_2 = getHhwList1(2); //化合物
        List<Ys> ysList1_2 = getYsList1(2); //元素
        //第2
        List<Hhw> hhwList2_2 = getHhwList2(2); //化合物
        List<Ys> ysList2_2 = getYsList2(2); //元素
        //第3
        List<Hhw> hhwList3_2 = getHhwList3(2); //化合物
        List<Ys> ysList3_2 = getYsList3(2); //元素
        //第4
        List<Hhw> hhwList4_2 = getHhwList4(2); //化合物
        List<Ys> ysList4_2 = getYsList4(2); //元素
        //第5
        List<Hhw> hhwList5_2 = getHhwList5(2); //化合物
        List<Ys> ysList5_2 = getYsList5(2); //元素

        envData2.setListHhw_1(hhwList1_2);
        envData2.setListHhw_2(hhwList2_2);
        envData2.setListHhw_3(hhwList3_2);
        envData2.setListHhw_4(hhwList4_2);
        envData2.setListHhw_5(hhwList5_2);
        envData2.setListYs_1(ysList1_2);
        envData2.setListYs_2(ysList2_2);
        envData2.setListYs_3(ysList3_2);
        envData2.setListYs_4(ysList4_2);
        envData2.setListYs_5(ysList5_2);

        initDataEnvLeft_2(envData2);
        envData2.setName("湖北省武汉市江夏区长家咀村");

        //===第3组===
        //第1
        List<Hhw> hhwList1_3 = getHhwList1(3); //化合物
        List<Ys> ysList1_3 = getYsList1(3); //元素
        //第2
        List<Hhw> hhwList2_3 = getHhwList2(3); //化合物
        List<Ys> ysList2_3 = getYsList2(3); //元素
        //第3
        List<Hhw> hhwList3_3 = getHhwList3(3); //化合物
        List<Ys> ysList3_3 = getYsList3(3); //元素
        //第4
        List<Hhw> hhwList4_3 = getHhwList4(3); //化合物
        List<Ys> ysList4_3 = getYsList4(3); //元素
        //第5
        List<Hhw> hhwList5_3 = getHhwList5(3); //化合物
        List<Ys> ysList5_3 = getYsList5(3); //元素

        envData3.setListHhw_1(hhwList1_3);
        envData3.setListHhw_2(hhwList2_3);
        envData3.setListHhw_3(hhwList3_3);
        envData3.setListHhw_4(hhwList4_3);
        envData3.setListHhw_5(hhwList5_3);
        envData3.setListYs_1(ysList1_3);
        envData3.setListYs_2(ysList2_3);
        envData3.setListYs_3(ysList3_3);
        envData3.setListYs_4(ysList4_3);
        envData3.setListYs_5(ysList5_3);
        initDataEnvLeft_3(envData3);
        envData3.setName("湖北省武汉市江夏区大咀渔业村");

        list_envData.add(envData1);
        list_envData.add(envData2);
        list_envData.add(envData3);

    }



    private static List<Hhw> getHhwList1(int i) {
        List<Hhw> hhwList = new ArrayList<>();
        switch (i){
            case 1:
                hhwList.add(new Hhw("Fe2O3",4.84,"1"));
                hhwList.add(new Hhw("MnO",0.07,"1"));
                hhwList.add(new Hhw("TiO2",1.34,"1"));
                hhwList.add(new Hhw("Al2O3",11.54,"1"));
                hhwList.add(new Hhw("CaO",0.23,"1"));
                hhwList.add(new Hhw("MgO",0.58,"1"));
                hhwList.add(new Hhw("K2O",1.62,"1"));
                hhwList.add(new Hhw("Na2O",0.17,"1"));
                hhwList.add(new Hhw("P2O5",0.12,"1"));
                hhwList.add(new Hhw("LOI",5.55,"1"));
                hhwList.add(new Hhw("S",0.22,"1"));
                break;
            case 2:
                hhwList.add(new Hhw("Fe2O3",3.56,"1"));
                hhwList.add(new Hhw("MnO",0.01,"1"));
                hhwList.add(new Hhw("TiO2",1.24,"1"));
                hhwList.add(new Hhw("Al2O3",11.34,"1"));
                hhwList.add(new Hhw("CaO",0.31,"1"));
                hhwList.add(new Hhw("MgO",0.51,"1"));
                hhwList.add(new Hhw("K2O",1.66,"1"));
                hhwList.add(new Hhw("Na2O",0.11,"1"));
                hhwList.add(new Hhw("P2O5",0.13,"1"));
                hhwList.add(new Hhw("LOI",5.15,"1"));
                hhwList.add(new Hhw("S",0.23,"1"));
                break;

            case 3:
                hhwList.add(new Hhw("Fe2O3",5.13,"1"));
                hhwList.add(new Hhw("MnO",0.08,"1"));
                hhwList.add(new Hhw("TiO2",1.14,"1"));
                hhwList.add(new Hhw("Al2O3",11.24,"1"));
                hhwList.add(new Hhw("CaO",0.29,"1"));
                hhwList.add(new Hhw("MgO",0.52,"1"));
                hhwList.add(new Hhw("K2O",1.69,"1"));
                hhwList.add(new Hhw("Na2O",0.12,"1"));
                hhwList.add(new Hhw("P2O5",0.15,"1"));
                hhwList.add(new Hhw("LOI",5.25,"1"));
                hhwList.add(new Hhw("S",0.25,"1"));
                break;
        }
        return hhwList;
    }

    private static List<Ys> getYsList1(int i) {
        List<Ys> ysList = new ArrayList<>();
        switch (i) {
            case 1:
                ysList.add(new Ys("Zn",63.1,"1"));
                ysList.add(new Ys("Cu",22.63,"1"));
                ysList.add(new Ys("Fe",109.13,"1"));
                ysList.add(new Ys("Se",0.39,"1"));
                ysList.add(new Ys("Cd",0.15,"1"));
                ysList.add(new Ys("Pb",26.46,"1"));
                ysList.add(new Ys("Cr",72.06,"1"));
                ysList.add(new Ys("Ni",22,"1"));
                ysList.add(new Ys("Hg",0.16,"1"));
                ysList.add(new Ys("As",9.91,"1"));
                break;
            case 2:
                ysList.add(new Ys("Zn",63.2,"1"));
                ysList.add(new Ys("Cu",20.63,"1"));
                ysList.add(new Ys("Fe",109.13,"1"));
                ysList.add(new Ys("Se",0.44,"1"));
                ysList.add(new Ys("Cd",0.20,"1"));
                ysList.add(new Ys("Pb",26.33,"1"));
                ysList.add(new Ys("Cr",73.16,"1"));
                ysList.add(new Ys("Ni",23,"1"));
                ysList.add(new Ys("Hg",0.18,"1"));
                ysList.add(new Ys("As",9.92,"1"));
                break;

            case 3:
                ysList.add(new Ys("Zn",63.3,"1"));
                ysList.add(new Ys("Cu",25.63,"1"));
                ysList.add(new Ys("Fe",109.13,"1"));
                ysList.add(new Ys("Se",0.43,"1"));
                ysList.add(new Ys("Cd",0.19,"1"));
                ysList.add(new Ys("Pb",26.56,"1"));
                ysList.add(new Ys("Cr",72.16,"1"));
                ysList.add(new Ys("Ni",24,"1"));
                ysList.add(new Ys("Hg",0.26,"1"));
                ysList.add(new Ys("As",9.01,"1"));
                break;
        }
        return ysList;
    }


    private static List<Hhw> getHhwList2(int i) {
        List<Hhw> hhwList = new ArrayList<>();
        switch (i){
            case 1:
                hhwList.add(new Hhw("Fe2O3",5.24,"1"));
                hhwList.add(new Hhw("MnO",0.11,"1"));
                hhwList.add(new Hhw("TiO2",1.54,"1"));
                hhwList.add(new Hhw("Al2O3",10.54,"1"));
                hhwList.add(new Hhw("CaO",0.53,"1"));
                hhwList.add(new Hhw("MgO",0.78,"1"));
                hhwList.add(new Hhw("K2O",2.01,"1"));
                hhwList.add(new Hhw("Na2O",0.31,"1"));
                hhwList.add(new Hhw("P2O5",0.25,"1"));
                hhwList.add(new Hhw("LOI",6.15,"1"));
                hhwList.add(new Hhw("S",0.28,"1"));
                break;
            case 2:
                hhwList.add(new Hhw("Fe2O3",5.20,"1"));
                hhwList.add(new Hhw("MnO",0.12,"1"));
                hhwList.add(new Hhw("TiO2",1.58,"1"));
                hhwList.add(new Hhw("Al2O3",11.54,"1"));
                hhwList.add(new Hhw("CaO",0.13,"1"));
                hhwList.add(new Hhw("MgO",0.60,"1"));
                hhwList.add(new Hhw("K2O",2.21,"1"));
                hhwList.add(new Hhw("Na2O",0.32,"1"));
                hhwList.add(new Hhw("P2O5",0.27,"1"));
                hhwList.add(new Hhw("LOI",6.25,"1"));
                hhwList.add(new Hhw("S",0.38,"1"));
                break;

            case 3:
                hhwList.add(new Hhw("Fe2O3",5.26,"1"));
                hhwList.add(new Hhw("MnO",0.13,"1"));
                hhwList.add(new Hhw("TiO2",1.51,"1"));
                hhwList.add(new Hhw("Al2O3",12.54,"1"));
                hhwList.add(new Hhw("CaO",0.23,"1"));
                hhwList.add(new Hhw("MgO",0.88,"1"));
                hhwList.add(new Hhw("K2O",2.31,"1"));
                hhwList.add(new Hhw("Na2O",0.33,"1"));
                hhwList.add(new Hhw("P2O5",0.20,"1"));
                hhwList.add(new Hhw("LOI",6.35,"1"));
                hhwList.add(new Hhw("S",0.58,"1"));
                break;
        }

        return hhwList;
    }

    private static List<Ys> getYsList2(int i) {
        List<Ys> ysList = new ArrayList<>();
        switch (i) {
            case 1:

                ysList.add(new Ys("Zn",61.1,"1"));
                ysList.add(new Ys("Cu",23.63,"1"));
                ysList.add(new Ys("Fe",119.13,"1"));
                ysList.add(new Ys("Se",0.59,"1"));
                ysList.add(new Ys("Cd",0.25,"1"));
                ysList.add(new Ys("Pb",22.46,"1"));
                ysList.add(new Ys("Cr",75.06,"1"));
                ysList.add(new Ys("Ni",25,"1"));
                ysList.add(new Ys("Hg",0.36,"1"));
                ysList.add(new Ys("As",10.91,"1"));
                break;
            case 2:

                ysList.add(new Ys("Zn",62.8,"1"));
                ysList.add(new Ys("Cu",24.63,"1"));
                ysList.add(new Ys("Fe",111.13,"1"));
                ysList.add(new Ys("Se",0.50,"1"));
                ysList.add(new Ys("Cd",0.29,"1"));
                ysList.add(new Ys("Pb",23.46,"1"));
                ysList.add(new Ys("Cr",70.06,"1"));
                ysList.add(new Ys("Ni",22,"1"));
                ysList.add(new Ys("Hg",0.16,"1"));
                ysList.add(new Ys("As",15.91,"1"));
                break;

            case 3:

                ysList.add(new Ys("Zn",63.6,"1"));
                ysList.add(new Ys("Cu",25.63,"1"));
                ysList.add(new Ys("Fe",110.13,"1"));
                ysList.add(new Ys("Se",0.69,"1"));
                ysList.add(new Ys("Cd",0.45,"1"));
                ysList.add(new Ys("Pb",20.46,"1"));
                ysList.add(new Ys("Cr",79.06,"1"));
                ysList.add(new Ys("Ni",30,"1"));
                ysList.add(new Ys("Hg",0.56,"1"));
                ysList.add(new Ys("As",12.91,"1"));
                break;
        }
        return ysList;
    }

    private static List<Hhw> getHhwList3(int i) {
        List<Hhw> hhwList = new ArrayList<>();
        switch (i) {
            case 1:

                hhwList.add(new Hhw("Fe2O3",2.94,"1"));
                hhwList.add(new Hhw("MnO",1.07,"1"));
                hhwList.add(new Hhw("TiO2",2.24,"1"));
                hhwList.add(new Hhw("Al2O3",13.54,"1"));
                hhwList.add(new Hhw("CaO",0.53,"1"));
                hhwList.add(new Hhw("MgO",0.38,"1"));
                hhwList.add(new Hhw("K2O",2.02,"1"));
                hhwList.add(new Hhw("Na2O",0.57,"1"));
                hhwList.add(new Hhw("P2O5",0.32,"1"));
                hhwList.add(new Hhw("LOI",4.15,"1"));
                hhwList.add(new Hhw("S",0.32,"1"));
                break;
            case 2:

                hhwList.add(new Hhw("Fe2O3",3.24,"1"));
                hhwList.add(new Hhw("MnO",1.80,"1"));
                hhwList.add(new Hhw("TiO2",2.88,"1"));
                hhwList.add(new Hhw("Al2O3",13.81,"1"));
                hhwList.add(new Hhw("CaO",0.93,"1"));
                hhwList.add(new Hhw("MgO",1.28,"1"));
                hhwList.add(new Hhw("K2O",3.00,"1"));
                hhwList.add(new Hhw("Na2O",1.67,"1"));
                hhwList.add(new Hhw("P2O5",0.79,"1"));
                hhwList.add(new Hhw("LOI",4.85,"1"));
                hhwList.add(new Hhw("S",2.22,"1"));
                break;

            case 3:

                hhwList.add(new Hhw("Fe2O3",5.14,"1"));
                hhwList.add(new Hhw("MnO",2.01,"1"));
                hhwList.add(new Hhw("TiO2",3.24,"1"));
                hhwList.add(new Hhw("Al2O3",15.54,"1"));
                hhwList.add(new Hhw("CaO",1.23,"1"));
                hhwList.add(new Hhw("MgO",0.68,"1"));
                hhwList.add(new Hhw("K2O",2.55,"1"));
                hhwList.add(new Hhw("Na2O",0.98,"1"));
                hhwList.add(new Hhw("P2O5",2.35,"1"));
                hhwList.add(new Hhw("LOI",6.43,"1"));
                hhwList.add(new Hhw("S",1.09,"1"));
                break;
        }
        return hhwList;
    }

    private static List<Ys> getYsList3(int i) {
        List<Ys> ysList = new ArrayList<>();
        switch (i) {
            case 1:
                ysList.add(new Ys("Zn",59.1,"1"));
                ysList.add(new Ys("Cu",20.63,"1"));
                ysList.add(new Ys("Fe",120.13,"1"));
                ysList.add(new Ys("Se",0.69,"1"));
                ysList.add(new Ys("Cd",0.25,"1"));
                ysList.add(new Ys("Pb",29.46,"1"));
                ysList.add(new Ys("Cr",70.06,"1"));
                ysList.add(new Ys("Ni",18,"1"));
                ysList.add(new Ys("Hg",0.32,"1"));
                ysList.add(new Ys("As",8.81,"1"));
                break;
            case 2:

                ysList.add(new Ys("Zn",67.2,"1"));
                ysList.add(new Ys("Cu",25.21,"1"));
                ysList.add(new Ys("Fe",133.33,"1"));
                ysList.add(new Ys("Se",1.09,"1"));
                ysList.add(new Ys("Cd",0.55,"1"));
                ysList.add(new Ys("Pb",35.42,"1"));
                ysList.add(new Ys("Cr",78.16,"1"));
                ysList.add(new Ys("Ni",22,"1"));
                ysList.add(new Ys("Hg",0.52,"1"));
                ysList.add(new Ys("As",9.08,"1"));
                break;

            case 3:

                ysList.add(new Ys("Zn",46.3,"1"));
                ysList.add(new Ys("Cu",19.99,"1"));
                ysList.add(new Ys("Fe",119.26,"1"));
                ysList.add(new Ys("Se",3.43,"1"));
                ysList.add(new Ys("Cd",0.19,"1"));
                ysList.add(new Ys("Pb",26.43,"1"));
                ysList.add(new Ys("Cr",69.96,"1"));
                ysList.add(new Ys("Ni",10,"1"));
                ysList.add(new Ys("Hg",1.02,"1"));
                ysList.add(new Ys("As",11.01,"1"));
                break;
        }
        return ysList;
    }


    private static List<Hhw> getHhwList4(int i) {
        List<Hhw> hhwList = new ArrayList<>();
        switch (i) {
            case 1:

                hhwList.add(new Hhw("Fe2O3",2.94,"1"));
                hhwList.add(new Hhw("MnO",0.11,"1"));
                hhwList.add(new Hhw("TiO2",2.54,"1"));
                hhwList.add(new Hhw("Al2O3",12.54,"1"));
                hhwList.add(new Hhw("CaO",0.63,"1"));
                hhwList.add(new Hhw("MgO",0.28,"1"));
                hhwList.add(new Hhw("K2O",1.42,"1"));
                hhwList.add(new Hhw("Na2O",0.39,"1"));
                hhwList.add(new Hhw("P2O5",0.28,"1"));
                hhwList.add(new Hhw("LOI",4.44,"1"));
                hhwList.add(new Hhw("S",0.33,"1"));
                break;
            case 2:

                hhwList.add(new Hhw("Fe2O3",5.24,"1"));
                hhwList.add(new Hhw("MnO",0.58,"1"));
                hhwList.add(new Hhw("TiO2",3.15,"1"));
                hhwList.add(new Hhw("Al2O3",15.08,"1"));
                hhwList.add(new Hhw("CaO",0.93,"1"));
                hhwList.add(new Hhw("MgO",1.11,"1"));
                hhwList.add(new Hhw("K2O",2.59,"1"));
                hhwList.add(new Hhw("Na2O",0.10,"1"));
                hhwList.add(new Hhw("P2O5",0.51,"1"));
                hhwList.add(new Hhw("LOI",3.99,"1"));
                hhwList.add(new Hhw("S",0.14,"1"));
                break;

            case 3:

                hhwList.add(new Hhw("Fe2O3",3.01,"1"));
                hhwList.add(new Hhw("MnO",1.06,"1"));
                hhwList.add(new Hhw("TiO2",4.05,"1"));
                hhwList.add(new Hhw("Al2O3",20.18,"1"));
                hhwList.add(new Hhw("CaO",1.60,"1"));
                hhwList.add(new Hhw("MgO",0.87,"1"));
                hhwList.add(new Hhw("K2O",3.00,"1"));
                hhwList.add(new Hhw("Na2O",0.82,"1"));
                hhwList.add(new Hhw("P2O5",1.05,"1"));
                hhwList.add(new Hhw("LOI",6.12,"1"));
                hhwList.add(new Hhw("S",0.72,"1"));
                break;
        }
        return hhwList;
    }

    private static List<Ys> getYsList4(int i) {
        List<Ys> ysList = new ArrayList<>();
        switch (i) {
            case 1:

                ysList.add(new Ys("Zn",54.1,"1"));
                ysList.add(new Ys("Cu",18.63,"1"));
                ysList.add(new Ys("Fe",111.13,"1"));
                ysList.add(new Ys("Se",0.58,"1"));
                ysList.add(new Ys("Cd",0.25,"1"));
                ysList.add(new Ys("Pb",29.46,"1"));
                ysList.add(new Ys("Cr",70.06,"1"));
                ysList.add(new Ys("Ni",25,"1"));
                ysList.add(new Ys("Hg",0.33,"1"));
                ysList.add(new Ys("As",9.01,"1"));
                break;
            case 2:

                ysList.add(new Ys("Zn",44.3,"1"));
                ysList.add(new Ys("Cu",20.13,"1"));
                ysList.add(new Ys("Fe",119.00,"1"));
                ysList.add(new Ys("Se",0.66,"1"));
                ysList.add(new Ys("Cd",1.25,"1"));
                ysList.add(new Ys("Pb",31.31,"1"));
                ysList.add(new Ys("Cr",69.11,"1"));
                ysList.add(new Ys("Ni",20,"1"));
                ysList.add(new Ys("Hg",0.71,"1"));
                ysList.add(new Ys("As",10.21,"1"));
                break;

            case 3:

                ysList.add(new Ys("Zn",59.9,"1"));
                ysList.add(new Ys("Cu",10.95,"1"));
                ysList.add(new Ys("Fe",124.31,"1"));
                ysList.add(new Ys("Se",0.79,"1"));
                ysList.add(new Ys("Cd",0.84,"1"));
                ysList.add(new Ys("Pb",33.21,"1"));
                ysList.add(new Ys("Cr",77.49,"1"));
                ysList.add(new Ys("Ni",28,"1"));
                ysList.add(new Ys("Hg",1.06,"1"));
                ysList.add(new Ys("As",8.99,"1"));
                break;
        }
        return ysList;
    }

    private static List<Hhw> getHhwList5(int i) {
        List<Hhw> hhwList = new ArrayList<>();
        switch (i) {
            case 1:
                hhwList.add(new Hhw("Fe2O3",3.54,"1"));
                hhwList.add(new Hhw("MnO",0.37,"1"));
                hhwList.add(new Hhw("TiO2",1.24,"1"));
                hhwList.add(new Hhw("Al2O3",15.54,"1"));
                hhwList.add(new Hhw("CaO",0.51,"1"));
                hhwList.add(new Hhw("MgO",0.34,"1"));
                hhwList.add(new Hhw("K2O",1.07,"1"));
                hhwList.add(new Hhw("Na2O",0.55,"1"));
                hhwList.add(new Hhw("P2O5",0.33,"1"));
                hhwList.add(new Hhw("LOI",4.99,"1"));
                hhwList.add(new Hhw("S",0.382,"1"));
                break;
            case 2:

                hhwList.add(new Hhw("Fe2O3",4.12,"1"));
                hhwList.add(new Hhw("MnO",0.83,"1"));
                hhwList.add(new Hhw("TiO2",1.65,"1"));
                hhwList.add(new Hhw("Al2O3",16.66,"1"));
                hhwList.add(new Hhw("CaO",0.81,"1"));
                hhwList.add(new Hhw("MgO",0.68,"1"));
                hhwList.add(new Hhw("K2O",2.52,"1"));
                hhwList.add(new Hhw("Na2O",0.73,"1"));
                hhwList.add(new Hhw("P2O5",1.44,"1"));
                hhwList.add(new Hhw("LOI",6.66,"1"));
                hhwList.add(new Hhw("S",0.487,"1"));
                break;

            case 3:

                hhwList.add(new Hhw("Fe2O3",8.15,"1"));
                hhwList.add(new Hhw("MnO",1.04,"1"));
                hhwList.add(new Hhw("TiO2",2.01,"1"));
                hhwList.add(new Hhw("Al2O3",13.23,"1"));
                hhwList.add(new Hhw("CaO",1.11,"1"));
                hhwList.add(new Hhw("MgO",1.00,"1"));
                hhwList.add(new Hhw("K2O",0.99,"1"));
                hhwList.add(new Hhw("Na2O",3.45,"1"));
                hhwList.add(new Hhw("P2O5",3.54,"1"));
                hhwList.add(new Hhw("LOI",2.13,"1"));
                hhwList.add(new Hhw("S",0.930,"1"));
                break;
        }
        return hhwList;
    }

    private static List<Ys> getYsList5(int i) {
        List<Ys> ysList = new ArrayList<>();
        switch (i) {
            case 1:
                ysList.add(new Ys("Zn",70.1,"1"));
                ysList.add(new Ys("Cu",28.63,"1"));
                ysList.add(new Ys("Fe",125.13,"1"));
                ysList.add(new Ys("Se",0.46,"1"));
                ysList.add(new Ys("Cd",0.20,"1"));
                ysList.add(new Ys("Pb",28.46,"1"));
                ysList.add(new Ys("Cr",69.66,"1"));
                ysList.add(new Ys("Ni",34,"1"));
                ysList.add(new Ys("Hg",0.32,"1"));
                ysList.add(new Ys("As",7.61,"1"));
                break;
            case 2:
                ysList.add(new Ys("Zn",77.3,"1"));
                ysList.add(new Ys("Cu",33.12,"1"));
                ysList.add(new Ys("Fe",130.45,"1"));
                ysList.add(new Ys("Se",0.53,"1"));
                ysList.add(new Ys("Cd",0.19,"1"));
                ysList.add(new Ys("Pb",33.43,"1"));
                ysList.add(new Ys("Cr",54.18,"1"));
                ysList.add(new Ys("Ni",40,"1"));
                ysList.add(new Ys("Hg",1.20,"1"));
                ysList.add(new Ys("As",8.25,"1"));
                break;

            case 3:
                ysList.add(new Ys("Zn",59.3,"1"));
                ysList.add(new Ys("Cu",38.51,"1"));
                ysList.add(new Ys("Fe",127.26,"1"));
                ysList.add(new Ys("Se",1.20,"1"));
                ysList.add(new Ys("Cd",0.82,"1"));
                ysList.add(new Ys("Pb",22.16,"1"));
                ysList.add(new Ys("Cr",41.29,"1"));
                ysList.add(new Ys("Ni",28,"1"));
                ysList.add(new Ys("Hg",2.11,"1"));
                ysList.add(new Ys("As",10.31,"1"));
                break;
        }

        return ysList;
    }



    /**
     * #####################################
     * 土壤环境 end
     */

    private static void initDataEnvLeft_1(EnvData envData){
        List<EnvLeft> envLefts = new ArrayList<>(); //土壤最左边
        envLefts.add(new EnvLeft("地貌类型",688,"冲龙梯田"));
        envLefts.add(new EnvLeft("种植类型",688,"水田"));
        envLefts.add(new EnvLeft("场地描述",688,"养分水平：中等；灌溉制度：雨水；耕作制度：早稻+晚稻"));
        envLefts.add(new EnvLeft("土壤类型",688,"水稻土"));
        envLefts.add(new EnvLeft("经度范围",688,"E28°55′26.8至E29°55′26.8"));
        envLefts.add(new EnvLeft("纬度范围",688,"N111°26′26.8至N111°55′26.8"));

        envLefts.add(new EnvLeft("场地面积",688,"面积：45x30.5；建立时间：1998年，2003进行了改扩建;设计使用年数：>99形状：长方形"));
        envLefts.add(new EnvLeft("地下水位",688,"1.72"));
        envLefts.add(new EnvLeft("母质",688,"第四纪红色黏土"));
        envLefts.add(new EnvLeft("熟制",688,"一年两熟"));
        envLefts.add(new EnvLeft("轮作",688,"水旱交替（早稻-晚稻）水+（冬闲）旱"));
        envLefts.add(new EnvLeft("浇灌能力",688,"保证率大于90%"));
        envLefts.add(new EnvLeft("浇灌类型",688,"地表水为主"));
        envLefts.add(new EnvLeft("排水能力",688,"保证率大于90%"));
        envLefts.add(new EnvLeft("侵蚀情况",688,"侵蚀程度：片侵"));
        envLefts.add(new EnvLeft("施肥制度",688,"化肥+有机肥"));
        envLefts.add(new EnvLeft("灌溉制度",688,"雨水，集雨自留灌溉"));
        envData.setEnvList(envLefts);
    }
    private static void initDataEnvLeft_2(EnvData envData){
        List<EnvLeft> envLefts = new ArrayList<>(); //土壤最左边
        envLefts.add(new EnvLeft("地貌类型",688,"冲龙梯田"));
        envLefts.add(new EnvLeft("种植类型",688,"水田"));
        envLefts.add(new EnvLeft("场地描述",688,"养分水平：中等；灌溉制度：雨水；耕作制度：早稻+晚稻"));
        envLefts.add(new EnvLeft("土壤类型",688,"水稻土"));
        envLefts.add(new EnvLeft("经度范围",688,"E28°55′26.8至E29°55′26.8"));
        envLefts.add(new EnvLeft("纬度范围",688,"N111°26′26.8至N111°55′26.8"));

        envLefts.add(new EnvLeft("场地面积",688,"面积：45x30.5；建立时间：1998年，2003进行了改扩建;设计使用年数：>99形状：长方形"));
        envLefts.add(new EnvLeft("地下水位",688,"1.72"));
        envLefts.add(new EnvLeft("母质",688,"第四纪红色黏土"));
        envLefts.add(new EnvLeft("熟制",688,"一年两熟"));
        envLefts.add(new EnvLeft("轮作",688,"水旱交替（早稻-晚稻）水+（冬闲）旱"));
        envLefts.add(new EnvLeft("浇灌能力",688,"保证率大于90%"));
        envLefts.add(new EnvLeft("浇灌类型",688,"地表水为主"));
        envLefts.add(new EnvLeft("排水能力",688,"保证率大于90%"));
        envLefts.add(new EnvLeft("侵蚀情况",688,"侵蚀程度：片侵"));
        envLefts.add(new EnvLeft("施肥制度",688,"化肥+有机肥"));
        envLefts.add(new EnvLeft("灌溉制度",688,"雨水，集雨自留灌溉"));
        envData.setEnvList(envLefts);
    }
    private static void initDataEnvLeft_3(EnvData envData){
        List<EnvLeft> envLefts = new ArrayList<>(); //土壤最左边
        envLefts.add(new EnvLeft("地貌类型",688,"冲龙梯田"));
        envLefts.add(new EnvLeft("种植类型",688,"水田"));
        envLefts.add(new EnvLeft("场地描述",688,"养分水平：中等；灌溉制度：雨水；耕作制度：早稻+晚稻"));
        envLefts.add(new EnvLeft("土壤类型",688,"水稻土"));
        envLefts.add(new EnvLeft("经度范围",688,"E29°55′26.8至E30°55′26.8"));
        envLefts.add(new EnvLeft("纬度范围",688,"N90°26′26.8至N110°55′26.8"));

        envLefts.add(new EnvLeft("场地面积",688,"面积：45x30.5；建立时间：1998年，2003进行了改扩建;设计使用年数：>99形状：长方形"));
        envLefts.add(new EnvLeft("地下水位",688,"1.72"));
        envLefts.add(new EnvLeft("母质",688,"第四纪红色黏土"));
        envLefts.add(new EnvLeft("熟制",688,"一年两熟"));
        envLefts.add(new EnvLeft("轮作",688,"水旱交替（早稻-晚稻）水+（冬闲）旱"));
        envLefts.add(new EnvLeft("浇灌能力",688,"保证率大于90%"));
        envLefts.add(new EnvLeft("浇灌类型",688,"地表水为主"));
        envLefts.add(new EnvLeft("排水能力",688,"保证率大于90%"));
        envLefts.add(new EnvLeft("侵蚀情况",688,"侵蚀程度：片侵"));
        envLefts.add(new EnvLeft("施肥制度",688,"化肥+有机肥"));
        envLefts.add(new EnvLeft("灌溉制度",688,"雨水，集雨自留灌溉"));
        envData.setEnvList(envLefts);
    }


    // Switchcitys start

    public static int cityIndex = 0;

    public static List<CityData> citysList = new ArrayList();

    public static void initCityData(){
        CityData cityData = new CityData();

        RestTemplate restTemplate = new RestTemplate();
        Object object = restTemplate.getForObject("https://geo.datav.aliyun.com/areas/bound/420100_full.json",Object.class);
        cityData.setCityJSON(JSON.toJSON(object).toString());
        cityData.setCityName("武汉市");
        cityData.setArea("8494.41");
        cityData.setCityLL(new CityLL(9,114.4D,30.6D));

        citysList.add(cityData);


        Object object1 = restTemplate.getForObject("https://geo.datav.aliyun.com/areas/bound/421200_full.json",Object.class);
        CityData cityData1 = new CityData();
        cityData1.setCityJSON(JSON.toJSON(object1).toString());
        cityData1.setCityName("咸宁市");
        cityData1.setArea("9861");
        cityData1.setCityLL(new CityLL(9,114.26D,29.7D));

        citysList.add(cityData1);
    }

    // Switchcitys start



    static {

        try{
            addCityLandData();

            initQrData();

            initEnv();

            initCityData();
        }catch (Exception e){
            e.printStackTrace();
            throw new RuntimeException(e);
        }

    }
}
